package bean;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Igroup entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Igroup implements java.io.Serializable {

	// Fields

	private Integer GId;
	private User user;
	private Category category;
	private String groupName;
	private String description;
	private Date createdAt;
	private Set posts = new HashSet(0);
	private Set members = new HashSet(0);

	// Constructors

	/** default constructor */
	public Igroup() {
	}

	/** minimal constructor */
	public Igroup(Integer GId, User user, Category category, String groupName,
			String description, Date createdAt) {
		this.GId = GId;
		this.user = user;
		this.category = category;
		this.groupName = groupName;
		this.description = description;
		this.createdAt = createdAt;
	}

	/** full constructor */
	public Igroup(Integer GId, User user, Category category, String groupName,
			String description, Date createdAt, Set posts, Set members) {
		this.GId = GId;
		this.user = user;
		this.category = category;
		this.groupName = groupName;
		this.description = description;
		this.createdAt = createdAt;
		this.posts = posts;
		this.members = members;
	}

	// Property accessors

	public Integer getGId() {
		return this.GId;
	}

	public void setGId(Integer GId) {
		this.GId = GId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Category getCategory() {
		return this.category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public String getGroupName() {
		return this.groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreatedAt() {
		return this.createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public Set getPosts() {
		return this.posts;
	}

	public void setPosts(Set posts) {
		this.posts = posts;
	}

	public Set getMembers() {
		return this.members;
	}

	public void setMembers(Set members) {
		this.members = members;
	}

}